<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./MasterPageHome.xhtml"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns="http://www.w3.org/1999/xhtml">
    <f:metadata>
        <f:viewParam name="idP" value="#{idProfile.iduser}"/>
    </f:metadata>
    <ui:define name="Title">
        <title>Profile</title>
    </ui:define>

    <ui:define name="content">
        <table>
            <tr>
                <td align="center">
                    <table cellpadding="15" cellspacing="15" width="100%">
                        <tr>
                            <td>
                                Email:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.email}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Type:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.typeUser}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Full name:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.fullname}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Birthday:
                            </td>
                            <td>
                                <h:outputText value="#{idProfile.su.birthday}">
                                    <f:convertDateTime pattern="MM/dd/yyyy"/>
                                </h:outputText>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Sex:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.sex}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Age: 
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.age}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                City:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.city}"/>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                Address:
                            </td>
                            <td>
                                <h:outputLabel value="#{idProfile.su.address}"/>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>

    </ui:define>

</ui:composition>
